package com.souvc.xstream;

import com.thoughtworks.xstream.annotations.XStreamAlias;

import java.util.Arrays;
import java.util.List;

/**
 * 测试  Implicit Collections
 */
@XStreamAlias("message")
public class RendezvousMessage3 {

    @XStreamAlias("type")
    private int messageType;

    //添加List属性
    private List<String> content;

    public RendezvousMessage3(int messageType, String ... content) {
        this.messageType = messageType;
        this.content = Arrays.asList(content);
    }
}
